{include file="header.html"}

<div class="page-header">
	<h6>
		系统设置
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			美容师收入结算
		</small>
	</h6>
</div><!-- /.page-header -->

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="setting" />
<input type="hidden" name="act" id="act" value="beautician_jiesuan" />
<input type="text" class="input-medium" placeholder="美容师" name="name" value="{$name}" /> 
<select name="status" id="status" class="form-control"> 
	<option value="">结算状态</option>
	<option value="0" {if $status==='0'}selected{/if}>未结算</option>
	<option value="1" {if $status==='1'}selected{/if}>已结算</option>
</select> 
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>日期</th>
			<th>美容师</th>
			<th>订单号</th>
			<th>收入</th>
			<th>状态</th>
			<th>结算时间</th>
			<th>结算备注</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$rs item=row name=row}
		<tr>
			<td>{$row.id}</td>
			<td style="text-align:left;">{$row.add_time|date_format:"%Y-%m-%d %H:%I:%S"}</td>
			<td style="text-align:left;">{$row.name}</td>
			<td style="text-align:left;"><a href="?app=order&act=edit&order_id={$row.order_id}">{$row.order_sn}</a></td>
			<td style="text-align:left;">{$row.income}</td>
			<td style="text-align:left;">{if $row.status==1}<font color=green>已结算</font>{else}<font color=red>未结算</font>{/if}</td>
			<td style="text-align:left;">{$row.jiesuan_time|date_format:"%Y-%m-%d %H:%I:%S"}</td>
			<td style="text-align:left;">{$row.memo}</td>
			<td>
				<a href="?app=setting&act=beautician_jiesuan_edit&id={$row.id}">
					<button class="btn btn-xs btn-info">
					<i class="ace-icon fa fa-pencil bigger-120"></i>
				</button>
				</a>
				</a>
			</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
	<div class="mypage" style="text-align:right">
			共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
	</div>
{include file="footer.html"}
